<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>通告-魔步</title>
<?php include_once(VIEWPATH."public/header_title.php");?>
<link href="<?php echo _get_cfg_path('css')?>base.css" type="text/css" rel="stylesheet" />
<link href="<?php echo _get_cfg_path('css')?>common.css" type="text/css" rel="stylesheet" />
<!--[if IE 6]>
<script src="js/DD_belatedPNG.js" type="text/javascript" ></script>
<script>DD_belatedPNG.fix('a,img');</script>
<![endif]-->
</head>
<body>
<?php include_once(VIEWPATH."public/header.php");?>
<div class="mainbody" id="mainbody">
	<div class="container">
        <div class="notlce">
            <!--div class="m_sort notlce_title">
            	<ul class="clearfix">
                    <?php foreach ($oSysAct as $k => $v):?>
                	   <li <?php if(isset($arrParam['type']) && $arrParam['type']==$k) echo ' class="ne_on"'; ?>><a href="?type=<?=$k?>"><span><?=$v?></span></a></li>
                    <?php endforeach;?>
                </ul>
            </div-->

            <div class="m_filter">
                <div class="filterBox">
                    <div class="values"><span class="label">性质：</span>
                        <p class="clearfix">
                            <a <?php if(empty($arrParam['pro'])):?> class="curr"<?php endif?> href="<?php if(!empty($arrParam['pro'])){$tmp_arrParam = $arrParam; unset($tmp_arrParam['pro']); echo _create_url('act', $tmp_arrParam );}?>" title="不限">不限</a>
                        <?php if (!empty($oProperty)):  
                        foreach ($oProperty as $op) :?>
                            <a href="<?php echo _create_url('act', array_merge($arrParam, array('pro'=>$op)))?>" title="地区" <?php if(!empty($arrParam['pro']) && ($arrParam['pro'] == $op)) {echo ' class="curr"';}?>><?php echo $op?></a>
                        <?php endforeach; endif?>
                        </p>
                    </div>
                    <div class="values"><span class="label">地区：</span>
                        <p class="clearfix">
                            <a <?php if(empty($arrParam['city'])):?> class="curr"<?php endif?> href="<?php if(!empty($arrParam['city'])){$tmp_arrParam = $arrParam; unset($tmp_arrParam['city']); echo _create_url('act', $tmp_arrParam );}?>" title="不限">不限</a>
                        <?php $flag=1;if (!empty($oCity)):  
                        foreach ($oCity as $city) :?>
                            <a href="<?php echo _create_url('act', array_merge($arrParam, array('city'=>$city['name'])))?>" title="地区" <?php if(!empty($arrParam['city']) && ($arrParam['city'] == $city['name'])) {$flag=2;echo ' class="curr"';}?>><?php echo $city['name']?></a>
                        <?php endforeach; endif?>
                        <a href="javascript:void(0);" class="city_input_hover"><input type="text" class="city_input" value="<?=$flag==1&&isset($arrParam['city'])?$arrParam['city']:''?>"/>&nbsp;<button class="J_SortbarPriceSubmit btn city_button" data-url="<?php $tmp_arrParam = $arrParam; unset($tmp_arrParam['city']); echo _create_url('act', $tmp_arrParam );?>" type="button">确定</button></a>
                        </p>
                    </div>
                    <div class="values"><span class="label">时间：</span>
                        <p class="clearfix">
                            <a <?php if(empty($arrParam['orderby'])):?> class="curr"<?php endif?> href="<?php if(!empty($arrParam['orderby'])){$tmp_arrParam = $arrParam; unset($tmp_arrParam['orderby']); echo _create_url('act', $tmp_arrParam );}?>" title="不限">不限</a>
                            <a href="<?=_create_url('act', array_merge($arrParam, array('orderby'=>'1')) )?>" <?php if(!empty($arrParam['orderby']) && $arrParam['orderby']=='1') echo ' class="curr"';?> title="最新">最新</a>
                            <a href="<?=_create_url('act', array_merge($arrParam, array('orderby'=>'2')) )?>" <?php if(!empty($arrParam['orderby']) && $arrParam['orderby']=='2') echo ' class="curr"';?> title="最热">最热</a>
                            <a href="<?=_create_url('act', array_merge($arrParam, array('orderby'=>'3')) )?>" <?php if(!empty($arrParam['orderby']) && $arrParam['orderby']=='3') echo ' class="curr"';?> title="三天">三天</a>
                            <a href="<?=_create_url('act', array_merge($arrParam, array('orderby'=>'4')) )?>" <?php if(!empty($arrParam['orderby']) && $arrParam['orderby']=='4') echo ' class="curr"';?> title="一周">一周</a>
                            <a href="<?=_create_url('act', array_merge($arrParam, array('orderby'=>'5')) )?>" <?php if(!empty($arrParam['orderby']) && $arrParam['orderby']=='5') echo ' class="curr"';?> title="一个月">一个月</a>
                        </p>
                    </div>
                    <div class="values">
                    	<span class="label">状态：</span>
                    	<p class="clearfix">
                            <a href="<?=_create_url('act', array_merge($arrParam, array('expired'=>'3')) )?>" <?php if(!empty($arrParam['expired']) && $arrParam['expired']=='3') echo ' class="curr"';?> title="不限">不限</a>
                            <a href="<?=_create_url('act', array_merge($arrParam, array('expired'=>'1')) )?>" <?php if(!empty($arrParam['expired']) && $arrParam['expired']=='1') echo ' class="curr"';?> title="正在进行">正在进行</a>
                            <a href="<?=_create_url('act', array_merge($arrParam, array('expired'=>'2')) )?>" <?php if(!empty($arrParam['expired']) && $arrParam['expired']=='2') echo ' class="curr"';?> title="已结束">已结束</a>
                        </p>
                    </div>
                </div>
                <div class="control_bar">
                    <a class="button_less spred" href="javascript:void(0);">更多选项<span class="ifont"></span></a>
                </div>
            </div>

            <div class="ne_con">
            	<ul class="clearfix">
                    <?php foreach ($list['rows'] as $key => $a): ?>
                	<li>
                    	<a class="picimg" href="/act/actDetail/<?=$a['id']?>">
                            <img src="<?=$a['img'];?>"/>
                            <div class="notl_hover">
                                <p>工作性质：<?php echo $a['category']?></p>
                                <p><?php if(3 == $a['type']) {echo '制作要求';} else {echo '模特要求';}?>：<?=  str_replace('||', ',', $a['summary'])?></p>  
                                <p>费用预算： <?=$a['workfee']?></p>
                                <p><?php if (1== $a['type']) {echo '面试时间';} else {echo '工作日期';}?>：<?=$a['w_time']?></p>
                                <p><?php if (1 == $a['type']) {echo '面试地点';} else {echo '工作地点';}?>：<?php echo $a['place']?></p>
                                <p>报名截止： <?=date('Y-m-d',$a['inendtime'])?><em class="fr">点击/<?php echo $a['visitnum']?$a['visitnum']:0?></em></p>
                            </div>
                        </a>
                        <div class="clearfix">
                        	<p class="fl nebti"><span class="act_type"><?=$oSysAct[$a['type']]?>通告</span><span style="cursor:pointer;margin-left:4px;" title="<?=$a['title']?>"><?=_cut_str($a['title'], 12);?></span> <a href="/act/enterlist?aid=<?=$a['id']?>"><em><?=($a['innum']+$a['innumfake']);?>人 报名</em></a></p>
                            <?php if($a['inendtime']>=time()):?>
                                <a class="fr status XT-enter" _val="<?=_get_key_val($a['id']);?>" title="<?=$a['title'];?>" href="javascript:;"><?php echo ($a['isApply'] == 1)?'已报名':'报名'?></a>
                            <?php else:?>
                                <span class="fr status">已结束</span>
                            <?php endif?>
                        </div>
                    </li>
                    <?php endforeach;?>
                </ul>
            </div>
            <br /><br />
            <div class="page">
                <?=$list['pages']?>
            </div><!--page-->
            <br /><br />
        </div>
    </div>
</div>
<!--mainbody-->
<?php include_once(VIEWPATH."public/footer.php");?>

</body>
<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>common.js"></script>
<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>pages/act.js"></script>
<script>
$(function(){
	$(".city_input_hover").hover(function(){
		$(".city_button").show();
	},function(){
		$(".city_button").hide();
	});
	$(".city_input").focus(function(){
		$(".city_input").css("border","solid 1px #dfdfdf");
	});
	//输入城市搜索
	$(".city_button").click(function(){
		var city = $.trim($(".city_input").val());
		if(city == '')
		{
			$(".city_input").css("border","1px solid red");
			return false;
		}
		var url = $(this).attr("data-url");
		if(url.indexOf("?") > 0)
		{
			url += "&city="+city;
		}
		else
		{
			url += "?city="+city;
		}
		window.location.href=url;
	});
});
</script>
</html>